﻿<%@ Page Title="" Language="C#" MasterPageFile="user2.master" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="Search" %>


<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
 <asp:DataList ID="listProduct" runat="server" RepeatColumns="2" 
            RepeatDirection="Horizontal">
            <ItemTemplate>
                    <div class="product">
                        <table width="280px" cellpadding="0" cellspacing="0" style="margin:10px; border-color:#CCC; border-style:solid;border-width:1px;">
                            
                            
                            <tr>
                                <td valign="top" width="119px">
                                    <div>
                                        <asp:Image BorderStyle="Solid" ID="img" runat="server" Width="119px" ImageUrl='<%# Bind("HinhAnh", "~/images/product/{0}") %>'/>
                                    </div>
                                    <br />
                                    <div>
                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Bind("MaSP", "Cart.aspx?id={0}") %>'>
                                            <asp:Image ID="Image1" Width="119px" runat="server" ImageUrl="images/muahang.jpg"/>
                                        </asp:HyperLink>
                                    </div>
                                </td>
                                <td valign="top">
                                    <br />
                                    <div class="product_tittle">
                                        <asp:Label ID="lbTen" runat="server" Text='<%# Bind("TenSP") %>'></asp:Label>
                                    </div>
                                    <br />
                                    <div class="product_price">
                                        <asp:Label ID="lbGia" runat="server" Text='<%# Bind("DonGia") %>'></asp:Label> VNĐ/Kg
                                    </div>
                                    <br />
                                    
                                    <div>
                                        <a class="tooltip"><img src="images/thongtinsanpham.png" />
                                        <asp:Label ID="lbMoTaChiTiet" runat="server" Text='<%# Bind("MoTaChiTiet") %>'></asp:Label>
                                        </a>
                                    </div>

                                </td>
                            </tr>
                        </table>
                    </div>
                </ItemTemplate>
        </asp:DataList>
</asp:Content>